//
//  AppDelegate.h
//  newKuiBa
//
//  Created by Lin Eidan on 14/6/13.
//  Copyright (c) 2014年 haomee. All rights reserved.
//

#import "config.h"
#import <UIKit/UIKit.h>
#import "AlixPayResult.h"
#import "HomeViewController.h"
#import "VideoPlayerViewController.h"
#import "MeHomeViewController.h"

typedef void (^Completion) (BOOL isSuccess);  //void 返回值，后面的为参数

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) UINavigationController *rootNav;
@property (strong, nonatomic) HomeViewController* homeViewController;

@property (strong, nonatomic) MeHomeViewController *meHomeVC;


//Download
@property (strong, nonatomic) id backgroundSessionCompletionHandler; //ios7
@property (unsafe_unretained,nonatomic) UIBackgroundTaskIdentifier downLoadTaskIdentifer;  //ios6


#pragma mark - 网络等待
@property (strong, nonatomic) UIView *allMaskView;
-(void)displayWaitViewWithAllMaskView:(BOOL) isDisplayMaskView;
-(void)hideWaitView;

#pragma mark - 分享
-(void)initShareViewWithUrl:(NSString*)url andWithTitle:(NSString*)title andWithInfo:(NSString*)info andWithImageUlr:(NSString*)url andIsSuccess:(Completion)completion;

@end
